package cn.shop.utils.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 订单类型
 *
 * @author jzw
 * @since 2022-01-17 10:15
 */
public enum GoodsType {
	/** 正常 */
	INGOT(1, "货币"),
	GOLD(2, "金币"),
	EQUIPMENT(3, "装备"),
	ROLE(4, "角色");

	@EnumValue
	private final int code;

	@JsonValue
	private final String description;

	GoodsType(int code, String description) {
		this.code = code;
		this.description = description;
	}

	public int code() {
		return code;
	}

	public String description() {
		return description;
	}
}
